.article {
  background: #EEE;
}

.article table {
  width: 100%;
  margin-bottom: 1em;
}

.article table,
.article tr,
.article td {
  word-wrap: break-word;
}

.article .title {
  background: #F2F2F2;
  background: radial-gradient(circle farthest-side at center, #FFF 0%, #DAE4E4 100%);;
}

.article .watermark {
  display: none;
  position: absolute;
  top: 50%;
  left: 10px;
  margin-top: -72px;
  width: 68px;
  height: 116px;
  text-indent: -100em;
  opacity: 0.75;
  transition: opacity 0.3s ease-out;
  overflow: hidden;
  background-image: url();
  background-repeat: no-repeat;
  background-position: center;
  z-index: 3;
}

.article .watermark:hover {
  opacity: 1;
}

.article .divider {
  display: none;
}

.article .title h1 {
  color: #333;
  text-shadow: 0 1px 2px rgba(255,255,255,0.7);
  font-size: 28px;
  font-family: 'Open Sans';
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.06em;
  margin: 0 auto;
  width: 70%;
  padding-right: 10%;
  position: relative;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
}

.article .title h2 {
  font-size: 15px;
  z-index: 2;
  color: #666;
  border: none;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
  font-weight: 300;
  padding: 7px 14px;
  margin: 0 auto;
  width: 80%;
}

.article .title-text {
  padding: 15px 0;
}

.article .title-text:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle farthest-side at top, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%);
}

.article .byline {
  margin-bottom: 34px;
}

.article .byline .translator,
.article .byline .date time,
.article .byline .date span {
  display: block;
}

.article .byline .date:last-child {
  margin-right: 0;
  padding-bottom: 30px;
}

.article .byline a,
.article .byline a:visited {
  color: #555;
  text-decoration: underline;
}

.article .byline a:visited {
  color: #777;
}

.article .author-images {
  text-align: center;
}

.article .author-images img {
  width: 80px;
  border: 3px solid #FFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  border-radius: 100%;
  position: relative;
}

.article .author-images a {
  margin-right: 10px;
  display: inline-block;
  height: 86px;
  width: 86px;
}

.article .meta {
  font-weight: 400;
  padding-top: 2px;
  text-align: center;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
}

.article .meta strong {
  font-weight: 800;
}

.article .meta .authors {
  font-size: 16px;
  padding-bottom: 6px;
  color: #444;
}

.article .content-wrapper {
  position: relative;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  word-wrap: break-word;
  background: #FFF;
  box-shadow: 0 2px 2px rgba(0,0,0,0.25);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
}

.article .content-wrapper:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  height: 30px;
  width: 100%;
  background: linear-gradient(0deg, #FFF, #F6F9F9);
}

body.locked.article .content-wrapper:after {
  display: none;
}

.article .content-wrapper .container {
  padding: 30px 0 60px 0;
  width: 100%;
  max-width: 975px;
}

.article .content-wrapper .content {
  width: 87%;
  margin: 0 auto;
  max-width: 660px;
  position: relative;
}

.article header .toc,
.article .article-meta {
  display: none;
}

.article header .toc.active {
  width: 100%;
  background: #333;
  display: block;
  z-index: 10;
  padding-bottom: 100px;
}

.article header .toc.active h1 {
  display: none;
}

.article header .toc.active h1.visible-title {
  display: block;
  margin: 1.5em 0 -20px 0;
  padding: 0 0 0 17px;
  font-size: 18px;
  color: #FFF;
}

.article header .toc.active ul:first-of-type {
  padding: 20px 17px 0 17px;
}

.article header .toc.active ul li {
  display: block;
  text-transform: uppercase;
  margin-right: 10px;
  border-bottom: 1px solid #444;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  position: relative;
  padding-left: 0;
  background: none;
  font-family: Arial, sans-serif;
}

.article header .toc.active ul li:after {
  content: '';
  width: 100%;
  height: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid #111;
}

.article header .toc.active ul li a {
  display: block;
  color: #FFF;
  opacity: 0.7;
  font-size: 18px;
  transition: opacity 0.2s ease-out;
  text-decoration: none;
}

.article header .toc.active ul li a:hover {
  opacity: 1;
}

.article #toctoggle {
  position: absolute;
  top: 6px;
  right: 7px;
  display: block;
  height: 25px;
  border: none;
  padding: 0 10px;
  color: #FFF;
  text-shadow: 0 1px 0 #000;
  font-size: 14px;
  line-height: 25px;
  text-decoration: none;
  font-weight: 800;
  z-index: 10;
  opacity: 0.75;
}

.article #toctoggle:hover {
  color: #FFF;
  opacity: 1;
}

.article .content-wrapper section {
  display: block;
  margin: 0 auto;
}

.article .content-wrapper a {
  text-decoration: underline;
}

.article .content-wrapper button a {
  text-decoration: none;
  color: #FFF;
}

.article .content-wrapper button {
  background: #333;
  color: #FFF;
  border-radius: 4px;
  border: none;
  padding: 10px 14px;
}

.article .content-wrapper .notice {
  clear: both;
  padding: 0.8em 0.7em;
  margin: 1em 0;
  border-top: 1px dotted #CBCBCB;
  border-bottom: 1px dotted #CBCBCB;
  color: #333;
  font-style: italic;
}



.article .content-wrapper .fact,
.article .content-wrapper .tip,
.article .content-wrapper .warning {
  position: relative;
  margin: 2em 0 1.5em 0;
}

.article .content-wrapper .fact:before,
.article .content-wrapper .tip:before,
.article .content-wrapper .warning:before {
  font-size: 16px;
  padding: 2px 7px 3px 7px;

  content: 'Fact!';
  background: #59B200;
  line-height: 24px;
  color: #FFF;
  position: absolute;
  left: 0;
  top: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border-radius: 2px;

  -webkit-transform: rotate(-5deg) translateX(-10px) translateY(-25px);
  -moz-transform: rotate(-5deg) translateX(-10px) translateY(-25px);
  -ms-transform: rotate(-5deg) translateX(-10px) translateY(-25px);
  -o-transform: rotate(-5deg) translateX(-10px) translateY(-25px);
  transform: rotate(-5deg) translateX(-10px) translateY(-25px);
}

.article .content-wrapper .warning {
  color: #ED4732;
  border-top: 1px dotted #ED4732;
  border-bottom: 1px dotted #ED4732;
}

.article .content-wrapper .warning:before {
  content: 'Heads up!';
  background: #ED4732;
}

.article .content-wrapper .fact {
  border-top: 1px dotted #59B200;
  border-bottom: 1px dotted #59B200;
  background: #FCFFFA;
}

.article .content-wrapper .fact strong,
.article .content-wrapper .fact b {
  color: #59B200;
}

.article .content-wrapper .tip {
  border-top: 1px dotted #00A3D9;
  border-bottom: 1px dotted #00A3D9;
  background: #FAFEFF;
}

.article .content-wrapper .tip strong,
.article .content-wrapper .tip b {
  color: #00A3D9;
}

.article .content-wrapper .tip:before {
  content: 'Tip!';
  background: #00A3D9;
}

.article p {
  margin: 0.4em 0 0.8em 0;
}

.article h2,
.article h3,
.article h4,
.article h5 {
  color: #333;
  font-family: 'Open Sans';
  font-weight: 600;
  margin: 1.3em 0 0.7em 0;
  clear: both;
  max-width: 85%;
}

.article h1 {
  font-size: 150%;
}

.article h2 {
  font-size: 135%;
}

.article h3 {
  font-size: 120%;
}

.article h4 {
  font-size: 110%;
}

.article h5 {
  font-size: 105%;
}

.article p code,
.article table code {
  font-size: 0.9em;
  color: #333;
}

.article figure {
  text-align: center;
  display: block;
  margin-bottom: 1em;
}

.article img,
.article figure img {
  max-width: 100%;
  box-sizing: border-box;
}

.article img.bordered {
  outline: 1px solid #CCC;
}

.article figcaption {
  color: #333;
  font-weight: bold;
  font-size: 15px;
  font-style: italic;
  margin: 1em auto 2em auto;
  width: 80%;
}

.article blockquote {
  color: #4A7E7B;
  font-style: italic;
  padding: 0.9em 0.7em 1.2em 0.7em;
  margin: 1.5em 0;
  font-weight: 400;
  position: relative;
  box-sizing: border-box;
  border-top: 1px dotted #4A7E7B;
  border-bottom: 1px dotted #4A7E7B;
  line-height: 1.4;
}

.article blockquote cite {
  position: absolute;
  bottom: -0.75em;
  right: 0;
  line-height: 30px;
  font-size: 20px;
  color: #999;
  background: #FFF;
  padding: 0 20px;
}

.article blockquote cite:before {
  content: '- ';
}

.article blockquote.talkinghead {
  padding-left: 80px;
}

.article blockquote.talkinghead:before {
  content: '';
  border-radius: 100%;
  width: 50px;
  height: 50px;
  position: absolute;
  margin-top: -28px;
  top: 50%;
  left: 10px;
  background-position: center center !important;
  background-size: 50px 50px !important;
  border: 2px solid #FFF;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

.article blockquote:after,
.article blockquote:before {
  clear: both;
}

.article footer {
  color: #DDD;
  font-size: 16px;
  padding-top: 60px;
  min-height: 130px;
  background: #444;
  position: relative;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
}

.article footer .container {
  width: 90%;
  margin: 0 auto;
}

.article footer p.licensing {
  width: 60%;
  margin: 0 auto;
  color: #777;
  text-align: center;
  clear: both;
  font-size: 13px;
  padding-bottom: 40px;
}

.article footer a {
  color: #999;
}

.article footer a:hover {
  color: #FFF;
}

.article footer:after {
  position: absolute;
  content: '';
  top: 10px;
  left: 0;
  width: 100%;
  height: 0;
  border-bottom: 1px dashed #8F8F8F;
}

#article-meta {
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -ms-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
  opacity: 0.999999;
}

#article-meta.sticky {
  -webkit-backface-visibility: hidden;
  position: fixed !important;
  top: 22px;
  bottom: 22px;
  left: 50%;
  margin-left: -467px;
  opacity: 0.3;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-transition: opacity 5s ease-in-out;
  -moz-transition: opacity 5s ease-in-out;
  -ms-transition: opacity 5s ease-in-out;
  -o-transition: opacity 5s ease-in-out;
  transition: opacity 5s ease-in-out;
}

#article-meta.sticky:hover {
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -ms-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
  opacity: 0.999999;
}

.article .article-meta .toc,
.article aside.localizations {
  font-size: 15px;
  margin-bottom: 30px;
}

.article .article-meta .toc a,
.article aside.localizations a {
  color: #666;
  text-decoration: none;
}

.article .article-meta .toc a:hover,
.article aside.localizations a:hover {
  color: #333;
  text-decoration: underline;
}

.article .article-meta h1 {
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #DDD;
  margin: 0 0 0.6em 0;
  padding: 0 0 5px 0;
}

.article .article-meta ul,
.article .article-meta li,
.article footer .panel ul,
.article footer .panel li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article .article-meta li,
.article footer .panel li {
  padding-left: 20px;
  background: url();
  background-repeat: no-repeat;
  background-position: 3px 5px;
  line-height: 1.4;
  padding-bottom: 0.4em;
}

.article footer .panel li a {
  color: #666;
}

.article nav.toc ul li ul {
  display: none;
}

.article footer h1,
.article footer h2 {
  font-family: 'Open Sans';
  font-weight: 800;
  font-size: 38px;
  color: #FFF;
  margin: 0 0 1em 0;
}

.article footer h2 {
  line-height: 28px;
  font-size: 22px;
  color: #AAA;
  margin: 0 0 0.6em 0;
}

.article footer .panel {
  margin: 0 0 30px 0;
  padding: 0 0 40px 0;
  border-bottom: 1px solid #5F5F5F;
}

.article footer .panel ul,
.article footer .panel li {
  font-size: 16px;
  margin-bottom: 5px;
  list-style: none;
  color: #FFF;
  line-height: 1.2;
  background-position: 3px 6px;
}

.article footer .panel li a {
  color: #DDD;
  text-decoration: underline;
}

.article footer .panel li a:hover {
  color: #FFF;
}

.article footer .panel.share a {
  margin-right: 14px;
  display: inline-block;
  width: 48px;
  height: 48px;
  background-image: url(/static/images/icons.png);
  background-size: 296px 56px;
  background-repeat: no-repeat;
  text-indent: -100em;
  overflow: hidden;
  font-size: 0;
}

.article footer .panel.share a.twitter {
  background-position: -160px 0;
}

.article footer .panel.share a.facebook {
  background-position: -80px 0;
}

.article footer .panel.share a.gplus {
  background-position: 0 0;
}

.article footer .panel.rss h2 {
  padding-left: 40px;
  background-image: url(/static/images/icons.png);
  background-size: 148px 28px;
  background-repeat: no-repeat;
  background-position: -120px 0;
}

.article footer .panel a {
  text-decoration: underline;
  color: #FFF;
}

.error-block {
  padding: 7px;
  font-size: 90%;
  background: #FFF;
  border-bottom: 1px solid #DDD;
  color: #7A7A7A;
  text-align: center;
  box-sizing: border-box;
}

.error-block p {
  margin: 0 auto;
  width: 75%;
}

#notcompatible {
  color: #666;
  text-align: center;
  font-size: 80%;
  font-weight: 600;
  padding: 1em 0;
  margin: 0 auto;
  width: 75%;
}

#notcompatible.hidden {
  display: none;
}

#disqus {
  margin: 40px auto 40px auto;
}

#disqus.active {
  background: #FFF;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#disqus h2 {
  width: 80%;
  margin: 0 auto;
  padding: 1.5em 0 0.4em 0;
  display: none;
}

#disqus.active h2 {
  display: block;
}

#disqus_thread {
  width: 80%;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}

#disqus .load-comments {
  display: inline-block;
  font-size: 20px;
  font-weight: 300;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-decoration: underline;
  padding: 20px 90px 20px 40px;
  border: 1px solid #DDD;
  background: #FFF;
  border-radius: 42px;
  height: 45px;
  line-height: 45px;
  background-image: url();
  background-repeat: no-repeat;
  background-position: 97% center;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
}

#disqus .load-comments:after {
  content: ' comments.';
}

pre.prettyprint, code.prettyprint {
  color: white;
  background-color: #444;
  padding: 1em;
  line-height: 1.3;
  font-size: 15px;
  border-radius: 2px;
  margin-bottom: 2em;
}

pre.prettyprint.small {
  padding: 0.5em;
}

.article .content-wrapper a.tooltip {
  text-decoration: none;
}

pre .tooltip {
  position: relative;
  cursor: pointer;
}

pre .tooltip .property {
  border-bottom: 1px dotted #fff;
}

pre .tooltip .property .kwd {
  color: #508B88;
}

pre .tooltip:hover:after {
  content: attr(data-tooltip);
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  padding: 5px 9px;
  color: #fff;
  border-radius: 3px;
  left: 0;
  top: 25px;
  width: 390px;
  z-index: 100;
}

/* Pretty printing styles. Used with prettify.js. */
/* Vim sunburst theme by David Leibovic */

pre .str, code .str { color: #65B042; } /* string  - green */
pre .kwd, code .kwd { color: #E28964; } /* keyword - dark pink */
pre .com, code .com { color: #AEAEAE; font-style: italic; } /* comment - gray */
pre .typ, code .typ { color: #89bdff; } /* type - light blue */
pre .lit, code .lit { color: #3387CC; } /* literal - blue */
pre .pun, code .pun { color: #fff; } /* punctuation - white */
pre .pln, code .pln { color: #fff; } /* plaintext - white */
pre .tag, code .tag { color: #89bdff; } /* html/xml tag    - light blue */
pre .atn, code .atn { color: #bdb76b; } /* html/xml attribute name  - khaki */
pre .atv, code .atv { color: #65B042; } /* html/xml attribute value - green */
pre .dec, code .dec { color: #3387CC; } /* decimal - blue */

@media (min-width: 450px) {

  .article .content-wrapper .warning {
    margin: 30px 0;
  }

  .article .title h1 {
    font-size: 36px;
  }

}

@media (min-width: 570px) {

  .article .author-images,
  .article .meta {
    float: left;
    text-align: left;
  }

  .article .author-images img,
  .article .author-images a {
    width: 80px;
    height: 80px;
  }

  .article .author-images a:last-of-type {
    margin-right: 25px;
  }

  .article .divider {
    display: block;
  }

  .article .title h1 {
    font-size: 40px;
  }

  .article .byline .translator,
  .article .byline .date time,
  .article .byline .date span {
    font-size: 15px;
  }

  .article .content-wrapper {
    font-size: 17px;
  }

  .article blockquote.talkinghead {
    padding-left: 100px;
  }

  .article blockquote.talkinghead:before {
    width: 60px;
    height: 60px;
    left: 10px;
    margin-top: -31px;
    background-position: center center !important;
    background-size: 60px 60px !important;
    border: 2px solid #FFF;
  }

  .article .content-wrapper .container {
    padding: 60px 0 60px 0;
  }

  body.locked.article .content-wrapper .container {
    padding: 0;
  }

  .article .title-text {
    padding: 25px 0;
  }

  .article footer .panel li {
    font-size: 20px;
    margin-bottom: 10px;
  }

  #notcompatible {
    width: auto;
    text-align: left;
    font-size: 80%;
  }
}

@media (min-width: 700px) {
  .article #toctoggle {
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    line-height: 50px;
    font-size: 14px;
    top: 0;
    font-weight: normal;
  }

  .article .content-wrapper .fact:before,
  .article .content-wrapper .tip:before,
  .article .content-wrapper .warning:before {
    font-size: 20px;
    padding: 4px 7px 5px 7px;

    -webkit-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    -moz-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    -ms-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    -o-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    transform: rotate(-5deg) translateX(-25px) translateY(-25px);
  }

  .article header .toc.active h1.visible-title {
    margin-bottom: 0;
  }

  .main nav.toc.active ul li:after {
    display: block;
  }
}

@media (min-width: 750px) {

  .article footer .panel {
    width: 31%;
    margin-right: 3%;
    float: left;
    display: block;
    border-bottom: none;
  }

  .article footer .panel:last-of-type {
    margin-right: 0;
  }

  .article .title h1 {
    font-size: 46px;
  }

  .article .title-text {
    padding: 45px 0;
  }

  .article .author-images {
    margin: 5px 0 0 0;
  }

  .article .author-images,
  .article .meta {
    display: inline-block;
    float: left;
  }

  #disqus .load-comments:before {
    content: 'There are ';
  }

  #disqus .load-comments:after {
    content: ' comments. Want to add yours?';
  }

  .article .content-wrapper .container {
    padding: 90px 0 120px 0;
  }
}

@media (min-width: 1000px) {

  .article .author-images {
    margin: -10px 0 0 0;
  }

  .article .author-images a {
    height: 86px;
    width: 86px;
  }

  .article .author-images img {
    width: 80px;
    height: 80px;
  }

  .article .watermark {
    display: block;
  }

  .article .title h1 {
    font-size: 56px;
  }

  .article .title-text {
    padding: 55px 0;
  }

  .article .meta {
    font-size: 15px;
  }

  .article .meta .authors {
    font-size: 17px;
  }

  .article .content-wrapper .content {
    max-width: 660px;
    position: relative;
    margin-left: 315px;
  }

  .article .content-wrapper.wide .content {
    margin: 0 auto;
    max-width: 800px;
  }

  .article .article-meta {
    position: absolute;
    width: 260px;
    top: 100px;
    left: 20px;
    right: auto;
    bottom: auto;
    font-size: 15px;
    display: block;
    background: none;
  }

  .article header .toc.active {
    display: none;
  }

  .article .article-meta.active .localizations,
  .article .article-meta .localizations {
    display: block;
  }

  .article #toctoggle {
    display: none;
  }

  .article .content-wrapper,
  .article .content-wrapper .notice {
    font-size: 18px;
  }

  .article blockquote {
    clear: both;
  }

  .article blockquote.talkinghead {
    padding-left: 120px;
  }

  .article blockquote.talkinghead:before {
    width: 65px;
    height: 65px;
    left: 20px;
    margin-top: -38px;
    background-position: center center !important;
    background-size: 65px 65px !important;
    border: 3px solid #FFF;
  }

  .article .title h2 {
    width: 80%;
    font-size: 20px;
    bottom: 45px;
  }

  .article .content-wrapper .fact:before,
  .article .content-wrapper .tip:before {
    font-size: 22px;
    padding: 5px 8px 6px 8px;

    -webkit-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    -moz-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    -ms-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    -o-transform: rotate(-5deg) translateX(-25px) translateY(-25px);
    transform: rotate(-5deg) translateX(-25px) translateY(-25px);
  }
}

@media print {

  html, body, .article {
    background: #FFF;
  }

  .main {
    display: none;
  }

  .article .content-wrapper {
    box-shadow: none;
  }

  .article .title {
    background: none;
  }

  .article .title-text:after,
  .article .content-wrapper:after {
    display: none;
  }

  .article .content-wrapper .container {
    padding: 0 0 60px 0;
  }

  .article .author-images img {
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  #notcompatible {
    display: none;
  }

  .article .title h1,
  .article .title h2 {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .disqus, footer {
    display: none;
  }
}
